<?php
namespace Common\Service;

/**
 * 战队
 * 存储位置：mongo > imba_showgirl
 * @author liubo <liubo@ilongyuan.com.cn>
 */
Class ShowgirlService extends BaseService
{
    /*
        id
        name
        description
        user_id
        avatar
        status
        sort
        create_time
        update_time
    */
    protected $_auto = array(
        array('user_id', 'intval', self::MODEL_BOTH, 'function'),
        array('status', 'intval', self::MODEL_BOTH, 'function'),
        array('sort', 'intval', self::MODEL_BOTH, 'function'),
        array('create_time', NOW_TIME, self::MODEL_INSERT),
        array('update_time', NOW_TIME, self::MODEL_BOTH)
    );
}